﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MethodWorx.CMS.Content;

namespace MethodWorx.CMS.Requests
{
    public class UpdatePageRequest
    {
        public Page Page { get; private set; }

        public UpdatePageRequest(Page page)
        {
            this.Page = page;
        }

        public string Description
        {
            get { return this.Page.Description; }
            set { this.Page.Description = value; }
        }

        public DateTime DateCreated { get { return this.Page.DateCreated; } }
        public DateTime? DatePublished { get { return this.Page.DatePublished; } }
        public ContentStatus Status { get { return this.Page.Status; } }
        public string Tags
        {

            get { return this.Page.Tags; }
            set { this.Page.Tags = value; }
        }
    }
}
